package com.example.k8s.hello.bean.exam.constant;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;

/**
 * 常量
 *
 * @author Mark sunlightcs@gmail.com
 */
public class EdConstant {

    // 算分时达到满分的血量
    public static final int FULL_MARKS_HP = 80;

    @Schema(description = "考试场景")
    public enum SceneType {
        DORM("宿舍"),

        CLASSROOM("教室"),

        TRAINING_BUILDING("实训楼");

        public String label;

        SceneType(String label) {
            this.label = label;
        }

        @Override
        public String toString() {
            return this.name() + ":" + label;
        }
    }

    @Schema(description = "考试科目")
    public enum SubjectType {
        FIRE("火灾"),

        EARTHQUAKE("地震");

        public String label;

        SubjectType(String label) {
            this.label = label;
        }

        @Override
        public String toString() {
            return this.name() + ":" + label;
        }
    }

    @AllArgsConstructor
    @Schema(description = "考试项目")
    public enum ExamItem {
        FIRE_PICK_PHONE("火灾-拿起手机"),
        FIRE_PICK_WETTOWEL("火灾-拿起湿毛巾"),
        FIRE_CLOSE_POWER("火灾-关闭电源"),
        FIRE_PREE_BELL("火灾-按压火警报警器"),
        FIRE_PUTOFF_FIRE("火灾-使用灭火器灭火"),
        FIRE_BOWCROSS_FIRE("火灾-弯腰通过烟雾区"),
        FIRE_TOUCH_DOOR("火灾-伸手触摸安全通道门温度"),
        FIRE_CHECK_DORMDOOR("火灾-获取门外情况信息"),

        EQ_HIDEUNDER_CHAIR("地震-地震发生时躲在桌下"),
        EQ_PICKUP_BAG("地震-拿取书包遮挡头部"),
        EQ_HIDE_STONE("地震-躲避碎石塌陷区"),
        EQ_HIDE_LEAKAGE("地震-躲避裸漏电线积水区"),
        EQ_AVOID_AFTERSHOCKS("地震-余震发生蹲下避险"),

        ;

        public String label;

        @Override
        public String toString() {
            return this.name()+":"+this.label;
        }
    }
}
